Substitute deprecated stuff from GtkContainer in documentation
authorJavier Jardón <jjardon@gnome.org>
Mon, 9 Nov 2009 08:20:33 +0000 (09:20 +0100)
committerJavier Jardón <jjardon@gnome.org>
Sun, 2 May 2010 23:51:19 +0000 (01:51 +0200)
docs/faq/gtk-faq.sgml

index 508d2310bb5f25865c1786d707ed4ce8ba81ad1f..493d61ece819592628f74cc87aae2d1a69727a6a 100644 (file)
@@ -1629,11 +1629,7 @@ int main(int argc, char *argv[])
   g_signal_connect(G_OBJECT (window), "destroy",
                     G_CALLBACK(destroy), NULL);
 
-#if (GTK_MAJOR_VERSION == 1) &amp;&amp; (GTK_MINOR_VERSION == 0)
-  gtk_container_border_width(GTK_CONTAINER (window), 10);
-#else  
   gtk_container_set_border_width(GTK_CONTAINER (window), 10);
-#endif
 
   /* add a button to do something useful */
   button = gtk_button_new_with_label("Fork me!");